import ajax from './ajax';

export const BASE_URL = 'https://hks-sys.dindong.cn/api/';
export var FILE_URL = 'http://rzkeji.oss-cn-shenzhen.aliyuncs.com/web/peoplesAssociation/';


//OSS路径
export const getOssImgPath = (params) => ajax(BASE_URL+'other/getOssImgPath', params);
//用户授权登陆
export const wxAppLogin = (params) => ajax(BASE_URL + 'auth/wxAppLogin', params, 'POST');
//获取微信绑定手机号
export const getWeChatPhone = (params) => ajax(BASE_URL + 'auth/getWeChatPhone', params, 'POST');
//绑定微信获取的手机号
export const directBindingPhone = (params) => ajax(BASE_URL + 'auth/directBindingPhone', params, 'POST');
//获取banner列表
export const getBannerList = (params) => ajax(BASE_URL+'other/getBannerList', params);
//获取分类
export const getClassify = (params) => ajax(BASE_URL+'other/getClassify', params);
//获取行业列表
export const getIndustryList = (params) => ajax(BASE_URL+'other/getIndustryList', params);
//获取用户协议
export const getUserAgreement = (params) => ajax(BASE_URL+'auth/getUserAgreement', params);
//微信支付
export const weChatPayment = (params) => ajax(BASE_URL + 'payment/weChatPayment', params, 'POST');
//图片上传
// export const uploadImage = (params) => ajax(BASE_URL + 'file/upload-img', params, 'POST');

//首页
    //获取专家库列表
    export const getExpertsList = (params) => ajax(BASE_URL+'ucenter/getExpertsList', params);
    //获取专家详情
    export const getExpertDetail = (params) => ajax(BASE_URL+'ucenter/getExpertDetail', params);
    //用户预约专家
    export const userAppointExpert = (params) => ajax(BASE_URL+'ucenter/userAppointExpert', params,'POST');
    //获取会员单位列表
    export const getMemberUnitList = (params) => ajax(BASE_URL+'ucenter/getMemberUnitList', params);
    //获取单位等级
    export const getUnitGradeList = (params) => ajax(BASE_URL+'other/getUnitGradeList', params);
    //获取单位详情
    export const getMemberUnitDetail = (params) => ajax(BASE_URL+'ucenter/getMemberUnitDetail', params);
    //获取单位下的员工参与的需求
    export const getUnitXUserDemandList = (params) => ajax(BASE_URL+'ucenter/getUnitXUserDemandList', params);
    //消息提醒
    export const getMyMessageRemind = (params) => ajax(BASE_URL+'message/getMyMessageRemind', params);
    //未读消息数量
    export const getMyMessageNumber = (params) => ajax(BASE_URL+'message/getMyMessageNumber', params);
    //获取消息列表
    export const getMessageList = (params) => ajax(BASE_URL+'message/getMessageList', params);
    //获取消息详情
    export const getMessageDetail = (params) => ajax(BASE_URL+'message/getMessageDetail', params);
    //首页获取对接动态
    export const getDemandIndex = (params) => ajax(BASE_URL+'demand/getDemandIndex', params);
    //单位入驻申请
    export const submitUnitSettledApply = (params) => ajax(BASE_URL + 'ucenter/submitUnitSettledApply', params, 'POST');
    //搜索需求、资讯
    export const searchSomething = (params) => ajax(BASE_URL+'other/searchSomething', params);
    //获取搜索记录与推荐关键词
    export const getSearchKeyword = (params) => ajax(BASE_URL+'other/getSearchKeyword', params);
    //清空我的搜索记录
    export const delMykeywordRecord = (params) => ajax(BASE_URL+'other/delMykeywordRecord', params,'POST');



//需求
    //获取值班列表
    export const getUnitInfo = (params) => ajax(BASE_URL+'demand/getUnitInfo', params);
    //获取诉求地区列表
    export const getDemandAreaList = (params) => ajax(BASE_URL+'demand/getDemandAreaList', params);
    //获取需求列表
    export const getDemandList = (params) => ajax(BASE_URL+'demand/getDemandList', params);
    //获取需求详情
    export const getDemandDetail = (params) => ajax(BASE_URL+'demand/getDemandDetail', params);
    //手机端发布需求
    export const sendDemandByPhone = (params) => ajax(BASE_URL + 'demand/sendDemandByPhone', params, 'POST');
    //发布需求前获取服务条款
    export const getStatement = (params) => ajax(BASE_URL+'demand/getStatement', params);
    //申请对接需求
    export const joinDemand = (params) => ajax(BASE_URL + 'demand/joinDemand', params, 'POST');
    //获取需求发布者的信息
    export const getDemandSenderInfo = (params) => ajax(BASE_URL+'demand/getDemandSenderInfo', params);
    //获取对接我需求的用户信息
    export const getMyDemandButtDetail = (params) => ajax(BASE_URL+'demand/getMyDemandButtDetail', params);
    //操作（淘汰、接受）对接者
    export const operateDemandJoiner = (params) => ajax(BASE_URL + 'demand/operateDemandJoiner', params, 'POST');
    //关注需求
    export const favoriteDemand = (params) => ajax(BASE_URL + 'demand/favoriteDemand', params, 'POST');
    //取消关注需求
    export const unFavoriteDemand = (params) => ajax(BASE_URL + 'demand/unFavoriteDemand', params, 'POST');
    //获取申请对接模板列表+详情
    export const getBusinessSituationTemplate = (params) => ajax(BASE_URL+'ucenter/getBusinessSituationTemplate', params);
    //设置申请对接模板
    export const setBusinessSituationTemplate = (params) => ajax(BASE_URL + 'ucenter/setBusinessSituationTemplate', params, 'POST');
    //删除申请对接模板
    export const delBusinessSituationTemplate = (params) => ajax(BASE_URL + 'ucenter/delBusinessSituationTemplate', params, 'POST');


//资讯
    //获取资讯列表
    export const getNewsList = (params) => ajax(BASE_URL+'news/getNewsList', params);
    //获取资讯详情
    export const getNewsDetail = (params) => ajax(BASE_URL+'news/getNewsDetail', params);
    //获取活动列表
    export const getActivity = (params) => ajax(BASE_URL+'activity/getActivity', params);
    //获取活动详情
    export const getActivityDetail = (params) => ajax(BASE_URL+'activity/getActivityDetail', params);
    //活动签到
    export const activityCheckIn = (params) => ajax(BASE_URL+'activity/activityCheckIn', params, 'POST');
    //获取活动签到状态
    export const activityCheckStatus = (params) => ajax(BASE_URL+'activity/activityCheckStatus', params);
    //创建活动订单
    export const buildOrder = (params) => ajax(BASE_URL+'order/buildOrder', params, 'POST');
    //获取条款
    export const getTermsService = (params) => ajax(BASE_URL+'demand/getTermsService', params);
    //评论点赞
    export const commentLikeAction = (params) => ajax(BASE_URL+'news/commentLikeAction', params, 'POST');
    //收藏资讯
    export const favoriteNews = (params) => ajax(BASE_URL+'news/favoriteNews', params, 'POST');
    //取消收藏资讯
    export const unFavoriteNews = (params) => ajax(BASE_URL+'news/unFavoriteNews', params, 'POST');
    //资讯点赞
    export const likeNews = (params) => ajax(BASE_URL+'news/likeNews', params, 'POST');
    //获取资讯评论
    export const getNewsComment = (params) => ajax(BASE_URL+'news/getNewsComment', params);
    //收藏/取消收藏活动
    export const userAttentionActivity = (params) => ajax(BASE_URL+'activity/userAttentionActivity', params, 'POST');
    //获取分享二维码图片
    export const generateShareQrCode = (params) => ajax(BASE_URL+'activity/generateShareQrCode', params);
    //资讯评论接口
    export const releaseNewsComment = (params) => ajax(BASE_URL+'news/releaseNewsComment', params, 'POST');


//个人
    //获取用户个人信息
    export const getUserInfos = (params) => ajax(BASE_URL+'ucenter/getUserInfo', params);
    //设置个人信息
    export const setUserInfo = (params) => ajax(BASE_URL + 'ucenter/setUserInfo', params, 'POST');
    //获取认证规则
    export const getAuthenticateRule = (params) => ajax(BASE_URL+'auth/getAuthenticateRule', params);
    //个人认证申请
    export const submitPersonalAuth = (params) => ajax(BASE_URL + 'ucenter/submitPersonalAuth', params, 'POST');
    //单位认证申请
    export const submitUnitAuth = (params) => ajax(BASE_URL + 'ucenter/submitUnitAuth', params, 'POST');
    //获取营业执照信息
    export const getBusinessLicenseInfo = (params) => ajax(BASE_URL+'ucenter/getBusinessLicenseInfo', params);
    //专家认证申请
    export const submitExpertAuth = (params) => ajax(BASE_URL + 'ucenter/submitExpertAuth', params, 'POST');
    //获取我参与的活动列表
    export const getUserJoinActivityList = (params) => ajax(BASE_URL+'ucenter/getUserJoinActivityList', params);
    //获取我对接的需求
    export const getMyJoinDemandInfo = (params) => ajax(BASE_URL+'demand/getMyJoinDemandInfo', params);
    //获取我发布的需求
    export const getMyDemandInfo = (params) => ajax(BASE_URL+'demand/getMyDemandInfo', params);
    //获取我关注的活动
    export const getUserAttentionActivityList = (params) => ajax(BASE_URL+'ucenter/getUserAttentionActivityList', params);
    //获取我关注的需求
    export const getMyFavoriteDemand = (params) => ajax(BASE_URL+'ucenter/getMyFavoriteDemand', params);
    //获取我收藏的资讯
    export const getMyFavoriteNews = (params) => ajax(BASE_URL+'ucenter/getMyFavoriteNews', params);
    //获取关于我们
    export const getAboutUs = (params) => ajax(BASE_URL+'other/getAboutUs', params);
	//获取个人认证信息
	export const getPersonalAuthInfo = (params) => ajax(BASE_URL+'ucenter/getPersonalAuthInfo', params);
	//获取单位认证信息
	export const getUnitAuthInfo = (params) => ajax(BASE_URL+'ucenter/getUnitAuthInfo', params);
	//获取专家认证信息
	export const getExpertAuthInfo = (params) => ajax(BASE_URL+'ucenter/getExpertAuthInfo', params);

//获取订阅消息模板id
export const getTemplate = (params) => ajax(BASE_URL+'other/getTemplate', params);

























